<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head th:replace="_fragment::head(~{::title})">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="UTF-8">
	<title>登录</title>
</head>

<body class="login-layout light-login">
<div class="main-container">
	<div class="main-content" >
		<div class="row">
			<div class="col-sm-10 col-sm-offset-1">
				<div class="login-container">
					<div class="center">
						<h1>
							<i class="ace-icon fa fa-leaf green"></i>
							<span class="red">书店</span>
							<span class="white" id="id-text2">Application</span>
						</h1>
					</div>

					<div class="space-6"></div>

					<div class="position-relative">
						<!--登录表单-->
						<div id="login-box" class="login-box visible widget-box no-border">
							<div class="widget-body">
								<div class="widget-main">
									<h4 class="header blue lighter bigger center">
										<i class="ace-icon fa fa-coffee green"></i>
										<span>登录系统</span>
									</h4>

									<div class="space-6"></div>
									<form th:action="@{/admin/login}" th:method="post">
										<fieldset>
											<label class="block clearfix">
												<span class="block input-icon input-icon-right">
													<input type="text" class="form-control" name="username" placeholder="请输入用户名" />
													<i class="ace-icon fa fa-myUser"></i>
												</span>
											</label>

											<label class="block clearfix">
												<span class="block input-icon input-icon-right">
													<input type="password" class="form-control" name="password" placeholder="请输入密码" />
													<i class="ace-icon fa fa-lock"></i>
												</span>
											</label>

											<div class="clearfix">
												<label class="inline">
													<input type="checkbox" class="ace" name="rememberMe" />
													<span class="lbl">记住我</span>
												</label>

												<button type="submit" class="width-35 pull-right btn btn-sm btn-primary">
													<i class="ace-icon fa fa-key"></i>
													<span class="bigger-110">登录</span>
												</button>
											</div>

										</fieldset>
									</form>
								</div><!-- /.widget-main -->
							</div><!-- /.widget-body -->
						</div><!-- /.login-box -->
					</div><!-- /.widget-body -->
				</div><!-- /.signup-box -->
			</div><!-- /.position-relative -->

			<div class="navbar-fixed-top align-right">
				<br />
				&nbsp;
				<a id="btn-login-dark" href="#">Dark</a>
				&nbsp;
				<span class="blue">/</span>
				&nbsp;
				<a id="btn-login-blur" href="#">Blur</a>
				&nbsp;
				<span class="blue">/</span>
				&nbsp;
				<a id="btn-login-light" href="#">Light</a>
				&nbsp; &nbsp; &nbsp;
			</div>
		</div>
	</div><!-- /.col -->
</div><!-- /.row -->
</div><!-- /.main-content -->
</div><!-- /.main-container -->

<th:block th:fragment="script">
	<script src="" th:src="@{/static/assets/js/jquery.2.1.1.min.js}"></script>
	<script src="" th:src="@{/static/assets/js/jquery.1.11.1.min.js}"></script>
	<script type="text/javascript">
		window.jQuery || document.write("<script src='../static/assets/js/jquery1x.min.js' th:src='@{/static/assets/js/jquery1x.min.js}'>"+"<"+"/script>");
	</script>
	<script type="text/javascript">
		if('ontouchstart' in document.documentElement) document.write("<script src='../static/assets/js/jquery.mobile.custom.min.js' th:src='@{/static/assets/js/jquery.mobile.custom.min.js}'>"+"<"+"/script>");
	</script>
	<script  th:src="@{/static/assets/js/bootstrap.min.js}"></script>
	<script  th:src="@{/static/assets/js/excanvas.min.js}"></script>
	<script  th:src="@{/static/assets/js/jquery-ui.custom.min.js}"></script>
	<script  th:src="@{/static/assets/js/jquery.ui.touch-punch.min.js}"></script>
	<script  th:src="@{/static/assets/js/jquery.easypiechart.min.js}"></script>
	<script  th:src="@{/static/assets/js/jquery.sparkline.min.js}"></script>
	<script  th:src="@{/static/assets/js/flot/jquery.flot.min.js}"></script>
	<script  th:src="@{/static/assets/js/flot/jquery.flot.pie.min.js}"></script>
	<script  th:src="@{/static/assets/js/flot/jquery.flot.resize.min.js}"></script>
	<script  th:src="@{/static/assets/js/ace-elements.min.js}"></script>
	<script  th:src="@{/static/assets/js/ace.min.js}"></script>
</th:block>


<!-- inline scripts related to this page -->
<script type="text/javascript">

	// 登录页、注册页、找回密码页 切换
	jQuery(function($) {
		$(document).on('click', '.toolbar a[data-target]', function(e) {
			e.preventDefault();
			var target = $(this).data('target');
			$('.widget-box.visible').removeClass('visible');//hide others
			$(target).addClass('visible');//show target
		});
	});

	//you don't need this, just used for changing background
	jQuery(function($) {
		$('#btn-login-dark').on('click', function(e) {
			$('body').attr('class', 'login-layout');
			$('#id-text2').attr('class', 'white');
			$('#id-company-text').attr('class', 'blue');
			e.preventDefault();
		});

		$('#btn-login-light').on('click', function(e) {
			$('body').attr('class', 'login-layout light-login');
			$('#id-text2').attr('class', 'grey');
			$('#id-company-text').attr('class', 'blue');
			e.preventDefault();
		});
		$('#btn-login-blur').on('click', function(e) {
			$('body').attr('class', 'login-layout blur-login');
			$('#id-text2').attr('class', 'white');
			$('#id-company-text').attr('class', 'light-blue');
			e.preventDefault();
		});
	});

</script>
</body>
</html>
